﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EFSQLiteOneToManay
{
    [Table("ItemRecord")]
   public class InspItemRecord : BaseDomain
    {
        /// <summary>
        /// KEY
        /// </summary>
        public string ID { get; set; }
        /// <summary>
        /// ForeignKey
        /// </summary>
        public string IID { get; set; }
        /// <summary>
        /// 检测项名称
        /// </summary>
        public string ItemName { get; set; }

        /// <summary>
        /// 检测项结果
        /// </summary>
        public bool ItemResult { get; set; }
        /// <summary>
        /// 检测项信息
        /// </summary>
        public string ItemMsg { get; set; }
        /// <summary>
        /// 亮度均值
        /// </summary>
        public byte Brightness { get; set; }
        /// <summary>
        /// 曝光时间
        /// </summary>
        public double ExproseTime { get; set; }
        /// <summary>
        /// 项索引
        /// </summary>
        public int ItemIndex { get; set; }
        [ForeignKey("IID")]
        public virtual InspGroupRecord GR { get; set; }
        public virtual ICollection<Coordinate> CoordinateDetails { get; set; }
    }
}
